﻿using System;

//Write a program that reads a list of words, separated by spaces and prints the list in an alphabetical order

namespace AlphabeticalOrder
{
    class AlphabeticalOrder
    {
        static void Main()
        {
            Console.WriteLine("Enter a string:");
            string text = Console.ReadLine();

            string[] words = text.Split(new char[]{' '}, StringSplitOptions.RemoveEmptyEntries);
            Array.Sort(words);

            foreach (string word in words)
            {
                Console.WriteLine(word);
            }
        }
    }
}
